<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form id="form_picklist_showedit" method="post" action="../../shiro/picklist/save.action">
    <input type="hidden" name="picklistId" value="${sysPicklist.picklistId==null?0:sysPicklist.picklistId}">
    <table class="tab_form">
        <tr>
            <td><input class="easyui-textbox" name="picklistname" data-options="label:'字典名称:',required:true"
                       value="${sysPicklist.picklistname}"/></td>
            <td><input class="easyui-textbox" name="picklistkey" data-options="label:'字典KEY:',required:true"
                       value="${sysPicklist.picklistkey}"/></td>
            <td></td>
        </tr>
        <tr>
            <td colspan="3">
            <textarea name="picklistvalues" style="width: 61%;height:100px;"><c:forEach items="${sysPicklistvalues}" var="pv">${pv.pvalue}
</c:forEach></textarea>
            </td>
        </tr>
    </table>
</form>
<div style="text-align:center;padding:5px 0">
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">保存</a>
</div>
<script>
    function submitForm() {
        $('#form_picklist_showedit').form('submit', {
            success: function () {
                $('#win_main').window("close");
                $("#picklist_list").datagrid("reload");
            }
        });
    }
</script>